/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controllers;

import dominio.Estudiante;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

/**
 *
 * @author Gonzalo
 */
public class EstudianteController extends MultiActionController {

    private Estudiante est;

    public void setEst(Estudiante est) {
        this.est = est;
    }

  
    
    public ModelAndView verPerfil(HttpServletRequest request, HttpServletResponse response) throws Exception {

        ModelAndView mav = new ModelAndView("perfil");

        mav.addObject("estudiante1", est);
        mav.addObject("titulo", "Perfil de " + est.getNombre() + " " + est.getApellido());

        return mav;
    }

   

}
